package com.teemor.im.common.util;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/6/15 14:51
 */
public class IDCreator {

    private static AtomicLong SEQ = new AtomicLong(1000L);

    public static long createSEQ() {
        return SEQ.addAndGet(1L);
    }

    public static long createLong() {
        return new Random().nextLong();
    }

    public static String createString() {

            return UUID.randomUUID().toString();
    }

    public static String createUUID() {
        return UUID.randomUUID().toString();
    }

}
